package tests

import (
	"google.golang.org/grpc"
	"google.golang.org/grpc/credentials/insecure"
	"mxshop_srvs/goods_srv/proto"
)

var Client proto.GoodsClient
var Conn *grpc.ClientConn

func Init() {
	var err error
	Conn, err = grpc.NewClient("192.168.175.1:58603", grpc.WithTransportCredentials(insecure.NewCredentials()))
	if err != nil {
		panic(err)
	}
	Client = proto.NewGoodsClient(Conn)
}
